#!/bin/bash

mkdir build
cd build
cmake ../
echo "Compiling ..."
NUMBER_OF_CORES="`cat /proc/cpuinfo | grep "processor" | wc -l`"
let NUMBER_OF_CORES+=1
echo "Doing make -j$NUMBER_OF_CORES install" 
make -j$NUMBER_OF_CORES install
echo "Compiling DONE..."
cd ..
